Skip to content

fix(desktop): use task-scoped context wiki tools - #94640

Merged
trunk-io[bot] merged 4 commits into
masterfrom
posthog/use-task-context-wiki-tools
Sep 8, 2026
Merged

trunk-io[bot] merged 4 commits into
masterfrom
posthog/use-task-context-wiki-tools

Conversation

@dmarticus

@dmarticus dmarticus commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Unattended CONTEXT.md tasks need task-scoped tools after #94480 reaches the backend.

Why: The existing tool names remain organization-scoped for human MCP sessions, so project-scoped task tokens cannot use them.

Changes

  • The generation prompt now calls the task-only Context Wiki aliases from #94480.
  • The task still reads the current page before one channel-bound update.
  • This change has no visible UI effect.

Warning

Merge this PR only after #94480 reaches the backend and MCP deployments.

How did you test this code?

Updated prompt coverage confirms enabled tasks use the task aliases and disabled tasks keep the legacy channel-instructions tool. The focused Desktop tests passed.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Automatic notifications

  • Publish to changelog?

Docs update

None. This updates an internal task prompt.

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

Codex used local validation and GitHub CLI. Skills: /debugging-ci-failures, /writing-tests, and /writing-pr-descriptions.

The Desktop coupling check required this client change to ship after the backend capability.


Created with PostHog Desktop

Generated-By: PostHog Desktop
Task-Id: b4d458c6-7d79-47ef-85fc-97d4b4542fee
@dmarticus dmarticus self-assigned this Sep 3, 2026
@trunk-io

trunk-io Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

😎 Merged successfully - details.

@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 216f538.

@github-actions github-actions Bot added the feature/desktop Feature Tag: Desktop label Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🤖 CI report

✅ Trunk lane — non-backend lane

This PR is assigned to the non-backend lane. It does not run backend Python tests and may merge in parallel with PRs in other lanes.

@hosthog

hosthog Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

HostHog preview — posthog-desktop-web

The previews for this PR have been torn down and no longer serve.

@dmarticus
dmarticus marked this pull request as ready for review September 3, 2026 22:53
@pr-assigner-resolver-posthog
pr-assigner-resolver-posthog Bot requested a review from a team September 3, 2026 22:55
@greptile-apps

greptile-apps Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor
Prompt To Fix All With AI
### Issue 1
products/desktop/packages/ui/src/features/canvas/contextPrompt.test.ts:29
**Keep the broader guard**

This assertion now excludes only `task-context-wiki-page-update`. If the disabled prompt regresses to the organization-scoped `context-wiki-page-update` while retaining the legacy publisher, this test will still pass. This is the only test guarding against Context Wiki tools leaking into disabled prompts, so keep the broader assertion or reject both tool families explicitly.

```suggestion
    expect(prompt).not.toContain("context-wiki-page-update");
```

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (1): Last reviewed commit: "Merge branch 'master' into posthog/use-t..." | Re-trigger Greptile

Generated-By: PostHog Desktop
Task-Id: b21105e6-4a22-4414-80f4-098b16626281
Generated-By: PostHog Desktop
Task-Id: b21105e6-4a22-4414-80f4-098b16626281
@trunk-io
trunk-io Bot merged commit 70385a8 into master Sep 8, 2026
206 of 207 checks passed
@trunk-io
trunk-io Bot deleted the posthog/use-task-context-wiki-tools branch September 8, 2026 21:05
@deployment-status-posthog

deployment-status-posthog Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-09-08 21:37 UTC Run
prod-us ✅ Deployed 2026-09-08 21:47 UTC Run
prod-eu ✅ Deployed 2026-09-08 21:50 UTC Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature/desktop Feature Tag: Desktop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants